package com.utooo.bid.common;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseCode implements IResponseCode {
    SUCCESS(200, "操作成功"),
    PARAM_ERROR(400, "参数错误"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "资源不存在"),
    INTERNAL_ERROR(500, "服务器内部错误"),
    SERVICE_BUSY(503, "服务繁忙"),
    
    // 业务错误码
    FILE_TYPE_ERROR(1001, "文件类型错误"),
    FILE_SIZE_ERROR(1002, "文件大小超限"),
    AI_SERVICE_ERROR(1003, "AI服务调用失败"),
    FILE_PROCESSING_ERROR(1002, "文件处理失败");

    private final Integer code;
    private final String message;
}